package com.cpd.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

/**
 * 文章标签表
 *
 * @author Copydown
 */
@Getter
@Setter
@ApiModel(description = "文章标签类")
public class ArticleTag {

    /**
     * id
     */
    private Long id;

    /**
     * 所属文章的 id
     */
    private Long articleId;

    /**
     * 标签 id
     */
    private Long tagId;

    /**
     * 删除标志
     * deleted
     */
    @TableLogic
    @TableField
    @JsonIgnore
    private Boolean deleted;
}